<?php
if ($this->relateProducts && count($this->relateProducts)) {
?>
<div id="relate-products" class="white-box">
    <div class="box-title"><?php echo $this->translate()->widget('title') ?></div>
    <div class="box-container">
        <?php 
        foreach($this->relateProducts as $product){
        ?>
        <div class="product">
            <div class="product-thumbnail">
                <img src="<?php echo $product->image_thumbnail?>" alt="<?php echo $product->name ?>">
                <div class="shadow"></div>
            </div>
            <h4>
                <a href="<?php echo $this->url($product->getProperties(), 'product_product_details')?>"><?php echo $product->name ?></a>
            </h4>
            <p class="product-price">
                <span class="label"><?php echo $this->translate()->widget('price')?>:</span>
                <span class="price"><?php echo $product->price?> VNĐ</span>
            </p>
            <div class="product-buttons">
                <a class="product-details"><?php echo $this->translate()->widget('details')?></a>
                <a class="product-add-to-cart"><?php echo $this->translate()->widget('buy_it')?></a>
            </div>
        </div>
        <?php
        }
        ?>
        <div class="clearfix"></div>
    </div>
</div>
<?php
}
?>